package com.onenine.app.activity;

import android.support.v7.widget.RecyclerView;
import android.util.Pair;

import com.onenine.app.R;
import com.onenine.app.adapter.ImageAddAdapter;
import com.onenine.base.base.BasePageListActivity;
import com.onenine.base.view.PullRefreshRecyclerView;


/**
 * 附近地址
 */
public class NearbyAddressActivity extends BasePageListActivity {

    @Override
    protected int getLayout() {
        return R.layout.activity_nearby_address;
    }

    @Override
    protected void initViews() {
        super.initViews();
        mToolbar.setCenterTitle(R.string.nearby_address);
    }

    @Override
    protected Pair<PullRefreshRecyclerView, RecyclerView.Adapter> initPullRefreshView() {
        return Pair.create(findViewById(R.id.pull_to_refresh_layout)
                , new ImageAddAdapter(getData(), 1));
    }

    @Override
    protected void loadPageData(int pageNum) {

    }

}
